package com.wocai.jrt.orders.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ContactHistoryBean {
    /**
     * order by 排序语句
     * 对应数据库表字段 contact_history
     */
    private String orderBy;

    /**
     * 分页开始记录
     * 对应数据库表字段 contact_history
     */
    private Integer start;

    /**
     * 分页大小
     * 对应数据库表字段 contact_history
     */
    private int pageSize = 10;

    /**
     * 是否指定 distinct 去除重复
     * 对应数据库表字段 contact_history
     */
    private boolean distinct;

    /**
     * 逻辑or语句
     * 对应数据库表字段 contact_history
     */
    private List<Criteria> oredCriteria;

    /**
     */
    public ContactHistoryBean() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * 设置 order by 排序语句
     */
    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * 获得 order by 排序语句
     */
    public String getOrderBy() {
        return orderBy;
    }

    /**
     * 设置 start，分页开始记录
     */
    public void setStart(Integer start) {
        this.start = start;
    }

    /**
     * 获得 start，分页开始记录
     */
    public Integer getStart() {
        return start;
    }

    /**
     * 设置 pageSize，分页大小
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获得 pageSize，分页大小
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * 设置是否指定 distinct 去除重复
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * 是否设置了distinct语句，true是，false否。
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * 获得逻辑or语句
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * 添加逻辑or语句
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * 添加逻辑and语句
     */
    public void and(Criteria criteria) {
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
    }

    /**
     * 新建逻辑或or语句
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 新建逻辑and语句
     */
    public Criteria and() {
        Criteria criteria = createCriteriaInternal();
        criteria.setAndRelation(true);
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 创建查询条件，如果逻辑或为空，同时将查询条件放入。
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * 创建新查询条件。
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * 清除逻辑或or语句，并且distinct为false，不去重。
     */
    public void clear() {
        oredCriteria.clear();
    }

    /**
     * 该类对应数据库表 contact_history
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void orCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition, true));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void orCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value, true));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void orCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2, true));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdIsNull() {
            orCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria orIdIsNotNull() {
            orCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria orIdEqualTo(String value) {
            orCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotEqualTo(String value) {
            orCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThan(String value) {
            orCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdGreaterThanOrEqualTo(String value) {
            orCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThan(String value) {
            orCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLessThanOrEqualTo(String value) {
            orCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdLike(String value) {
            orCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotLike(String value) {
            orCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdIn(List<String> values) {
            orCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotIn(List<String> values) {
            orCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria orIdBetween(String value1, String value2) {
            orCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria orIdNotBetween(String value1, String value2) {
            orCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdIsNull() {
            orCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria orOrderIdIsNotNull() {
            orCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria orOrderIdEqualTo(String value) {
            orCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdNotEqualTo(String value) {
            orCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdGreaterThan(String value) {
            orCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdGreaterThanOrEqualTo(String value) {
            orCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdLessThan(String value) {
            orCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdLessThanOrEqualTo(String value) {
            orCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdLike(String value) {
            orCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdNotLike(String value) {
            orCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdIn(List<String> values) {
            orCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdNotIn(List<String> values) {
            orCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdBetween(String value1, String value2) {
            orCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria orOrderIdNotBetween(String value1, String value2) {
            orCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andContactSignUserIsNull() {
            addCriterion("contact_sign_user is null");
            return (Criteria) this;
        }

        public Criteria andContactSignUserIsNotNull() {
            addCriterion("contact_sign_user is not null");
            return (Criteria) this;
        }

        public Criteria andContactSignUserEqualTo(String value) {
            addCriterion("contact_sign_user =", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserNotEqualTo(String value) {
            addCriterion("contact_sign_user <>", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserGreaterThan(String value) {
            addCriterion("contact_sign_user >", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserGreaterThanOrEqualTo(String value) {
            addCriterion("contact_sign_user >=", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserLessThan(String value) {
            addCriterion("contact_sign_user <", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserLessThanOrEqualTo(String value) {
            addCriterion("contact_sign_user <=", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserIsNull() {
            orCriterion("contact_sign_user is null");
            return (Criteria) this;
        }

        public Criteria orContactSignUserIsNotNull() {
            orCriterion("contact_sign_user is not null");
            return (Criteria) this;
        }

        public Criteria orContactSignUserEqualTo(String value) {
            orCriterion("contact_sign_user =", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserNotEqualTo(String value) {
            orCriterion("contact_sign_user <>", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserGreaterThan(String value) {
            orCriterion("contact_sign_user >", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserGreaterThanOrEqualTo(String value) {
            orCriterion("contact_sign_user >=", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserLessThan(String value) {
            orCriterion("contact_sign_user <", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserLessThanOrEqualTo(String value) {
            orCriterion("contact_sign_user <=", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserLike(String value) {
            addCriterion("contact_sign_user like", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserNotLike(String value) {
            addCriterion("contact_sign_user not like", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserLike(String value) {
            orCriterion("contact_sign_user like", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserNotLike(String value) {
            orCriterion("contact_sign_user not like", value, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserIn(List<String> values) {
            addCriterion("contact_sign_user in", values, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserNotIn(List<String> values) {
            addCriterion("contact_sign_user not in", values, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserBetween(String value1, String value2) {
            addCriterion("contact_sign_user between", value1, value2, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactSignUserNotBetween(String value1, String value2) {
            addCriterion("contact_sign_user not between", value1, value2, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserIn(List<String> values) {
            orCriterion("contact_sign_user in", values, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserNotIn(List<String> values) {
            orCriterion("contact_sign_user not in", values, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserBetween(String value1, String value2) {
            orCriterion("contact_sign_user between", value1, value2, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria orContactSignUserNotBetween(String value1, String value2) {
            orCriterion("contact_sign_user not between", value1, value2, "contactSignUser");
            return (Criteria) this;
        }

        public Criteria andContactMidFileIsNull() {
            addCriterion("contact_mid_file is null");
            return (Criteria) this;
        }

        public Criteria andContactMidFileIsNotNull() {
            addCriterion("contact_mid_file is not null");
            return (Criteria) this;
        }

        public Criteria andContactMidFileEqualTo(String value) {
            addCriterion("contact_mid_file =", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileNotEqualTo(String value) {
            addCriterion("contact_mid_file <>", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileGreaterThan(String value) {
            addCriterion("contact_mid_file >", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileGreaterThanOrEqualTo(String value) {
            addCriterion("contact_mid_file >=", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileLessThan(String value) {
            addCriterion("contact_mid_file <", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileLessThanOrEqualTo(String value) {
            addCriterion("contact_mid_file <=", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileIsNull() {
            orCriterion("contact_mid_file is null");
            return (Criteria) this;
        }

        public Criteria orContactMidFileIsNotNull() {
            orCriterion("contact_mid_file is not null");
            return (Criteria) this;
        }

        public Criteria orContactMidFileEqualTo(String value) {
            orCriterion("contact_mid_file =", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileNotEqualTo(String value) {
            orCriterion("contact_mid_file <>", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileGreaterThan(String value) {
            orCriterion("contact_mid_file >", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileGreaterThanOrEqualTo(String value) {
            orCriterion("contact_mid_file >=", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileLessThan(String value) {
            orCriterion("contact_mid_file <", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileLessThanOrEqualTo(String value) {
            orCriterion("contact_mid_file <=", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileLike(String value) {
            addCriterion("contact_mid_file like", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileNotLike(String value) {
            addCriterion("contact_mid_file not like", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileLike(String value) {
            orCriterion("contact_mid_file like", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileNotLike(String value) {
            orCriterion("contact_mid_file not like", value, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileIn(List<String> values) {
            addCriterion("contact_mid_file in", values, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileNotIn(List<String> values) {
            addCriterion("contact_mid_file not in", values, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileBetween(String value1, String value2) {
            addCriterion("contact_mid_file between", value1, value2, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactMidFileNotBetween(String value1, String value2) {
            addCriterion("contact_mid_file not between", value1, value2, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileIn(List<String> values) {
            orCriterion("contact_mid_file in", values, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileNotIn(List<String> values) {
            orCriterion("contact_mid_file not in", values, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileBetween(String value1, String value2) {
            orCriterion("contact_mid_file between", value1, value2, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria orContactMidFileNotBetween(String value1, String value2) {
            orCriterion("contact_mid_file not between", value1, value2, "contactMidFile");
            return (Criteria) this;
        }

        public Criteria andContactFileIsNull() {
            addCriterion("contact_file is null");
            return (Criteria) this;
        }

        public Criteria andContactFileIsNotNull() {
            addCriterion("contact_file is not null");
            return (Criteria) this;
        }

        public Criteria andContactFileEqualTo(String value) {
            addCriterion("contact_file =", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileNotEqualTo(String value) {
            addCriterion("contact_file <>", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileGreaterThan(String value) {
            addCriterion("contact_file >", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileGreaterThanOrEqualTo(String value) {
            addCriterion("contact_file >=", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileLessThan(String value) {
            addCriterion("contact_file <", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileLessThanOrEqualTo(String value) {
            addCriterion("contact_file <=", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileIsNull() {
            orCriterion("contact_file is null");
            return (Criteria) this;
        }

        public Criteria orContactFileIsNotNull() {
            orCriterion("contact_file is not null");
            return (Criteria) this;
        }

        public Criteria orContactFileEqualTo(String value) {
            orCriterion("contact_file =", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileNotEqualTo(String value) {
            orCriterion("contact_file <>", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileGreaterThan(String value) {
            orCriterion("contact_file >", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileGreaterThanOrEqualTo(String value) {
            orCriterion("contact_file >=", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileLessThan(String value) {
            orCriterion("contact_file <", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileLessThanOrEqualTo(String value) {
            orCriterion("contact_file <=", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileLike(String value) {
            addCriterion("contact_file like", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileNotLike(String value) {
            addCriterion("contact_file not like", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileLike(String value) {
            orCriterion("contact_file like", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileNotLike(String value) {
            orCriterion("contact_file not like", value, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileIn(List<String> values) {
            addCriterion("contact_file in", values, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileNotIn(List<String> values) {
            addCriterion("contact_file not in", values, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileBetween(String value1, String value2) {
            addCriterion("contact_file between", value1, value2, "contactFile");
            return (Criteria) this;
        }

        public Criteria andContactFileNotBetween(String value1, String value2) {
            addCriterion("contact_file not between", value1, value2, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileIn(List<String> values) {
            orCriterion("contact_file in", values, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileNotIn(List<String> values) {
            orCriterion("contact_file not in", values, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileBetween(String value1, String value2) {
            orCriterion("contact_file between", value1, value2, "contactFile");
            return (Criteria) this;
        }

        public Criteria orContactFileNotBetween(String value1, String value2) {
            orCriterion("contact_file not between", value1, value2, "contactFile");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIsNull() {
            orCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIsNotNull() {
            orCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria orCreateTimeEqualTo(Date value) {
            orCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotEqualTo(Date value) {
            orCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeGreaterThan(Date value) {
            orCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeGreaterThanOrEqualTo(Date value) {
            orCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeLessThan(Date value) {
            orCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeLessThanOrEqualTo(Date value) {
            orCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeIn(List<Date> values) {
            orCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotIn(List<Date> values) {
            orCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeBetween(Date value1, Date value2) {
            orCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria orCreateTimeNotBetween(Date value1, Date value2) {
            orCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andContactNameIsNull() {
            addCriterion("contact_name is null");
            return (Criteria) this;
        }

        public Criteria andContactNameIsNotNull() {
            addCriterion("contact_name is not null");
            return (Criteria) this;
        }

        public Criteria andContactNameEqualTo(String value) {
            addCriterion("contact_name =", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameNotEqualTo(String value) {
            addCriterion("contact_name <>", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameGreaterThan(String value) {
            addCriterion("contact_name >", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameGreaterThanOrEqualTo(String value) {
            addCriterion("contact_name >=", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameLessThan(String value) {
            addCriterion("contact_name <", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameLessThanOrEqualTo(String value) {
            addCriterion("contact_name <=", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameIsNull() {
            orCriterion("contact_name is null");
            return (Criteria) this;
        }

        public Criteria orContactNameIsNotNull() {
            orCriterion("contact_name is not null");
            return (Criteria) this;
        }

        public Criteria orContactNameEqualTo(String value) {
            orCriterion("contact_name =", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameNotEqualTo(String value) {
            orCriterion("contact_name <>", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameGreaterThan(String value) {
            orCriterion("contact_name >", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameGreaterThanOrEqualTo(String value) {
            orCriterion("contact_name >=", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameLessThan(String value) {
            orCriterion("contact_name <", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameLessThanOrEqualTo(String value) {
            orCriterion("contact_name <=", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameLike(String value) {
            addCriterion("contact_name like", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameNotLike(String value) {
            addCriterion("contact_name not like", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameLike(String value) {
            orCriterion("contact_name like", value, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameNotLike(String value) {
            orCriterion("contact_name not like", value, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameIn(List<String> values) {
            addCriterion("contact_name in", values, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameNotIn(List<String> values) {
            addCriterion("contact_name not in", values, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameBetween(String value1, String value2) {
            addCriterion("contact_name between", value1, value2, "contactName");
            return (Criteria) this;
        }

        public Criteria andContactNameNotBetween(String value1, String value2) {
            addCriterion("contact_name not between", value1, value2, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameIn(List<String> values) {
            orCriterion("contact_name in", values, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameNotIn(List<String> values) {
            orCriterion("contact_name not in", values, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameBetween(String value1, String value2) {
            orCriterion("contact_name between", value1, value2, "contactName");
            return (Criteria) this;
        }

        public Criteria orContactNameNotBetween(String value1, String value2) {
            orCriterion("contact_name not between", value1, value2, "contactName");
            return (Criteria) this;
        }
    }

    /**
     * 该类对应数据库表 contact_history
     */
    public static class Criteria extends GeneratedCriteria {
        protected boolean andRelation;

        public boolean isAndRelation() {
            return andRelation;
        }

        protected Criteria() {
            super();
        }

        public void setAndRelation(boolean andRelation) {
            this.andRelation = andRelation;
        }
    }

    /**
     * 该类对应数据库表 contact_history
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean orValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isOrValue() {
            return orValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, boolean orValue) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, boolean orValue) {
            this(condition, value, null);
            this.orValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, boolean orValue) {
            this(condition, value, secondValue, null);
            this.orValue = true;
        }
    }
}